package com.tim.app.server.result;


import com.tim.app.server.entry.User;

import java.io.Serializable;

/**
 * 登录详情
 */
public class LoginResult extends ResponseResult implements Serializable {

    private static final long serialVersionUID = -6787650464251166958L;

    private Res res;

    public Res getRes() {
        return res;
    }

    public void setRes(Res res) {
        this.res = res;
    }

    public static class Res {

        private Data hashmap;


        public Data getHashmap() {
            return hashmap;
        }

        public void setHashmap(Data hashmap) {
            this.hashmap = hashmap;
        }

        public static class Data{

            public static final int STATE_UNBIND = 0;//未绑定
            public static final int STATE_BIND_SUCCESS = 1;//绑定成功
            public static final int STATE_HAS_BIND = 2;//已绑定

            private int phoneState;

            public int getPhoneState() {
                return phoneState;
            }

            public void setPhoneState(int phoneState) {
                this.phoneState = phoneState;
            }

            private String accessToken;

            private int isPerfectInfo;

            private User user;

            public String getAccessToken() {
                return accessToken;
            }

            public void setAccessToken(String accessToken) {
                this.accessToken = accessToken;
            }

            public User getUser() {
                return user;
            }

            public void setUser(User user) {
                this.user = user;
            }

            public int getIsPerfectInfo() {
                return isPerfectInfo;
            }

            public void setIsPerfectInfo(int isPerfectInfo) {
                this.isPerfectInfo = isPerfectInfo;
            }
        }
    }

}
